/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2011
 */

package com.hibernate.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Max;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.javacommon.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "T_BIG_REGION_CN")
public class TipBigRegionCn extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635343L;
	
	//alias
	public static final String TABLE_ALIAS = "TipBigRegionCn";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_NAME = "name";
	public static final String ALIAS_CHILDREN = "children";
	
	//date formats
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Max(32767)
	private Integer id;
	@Length(max=20)
	private java.lang.String name;
	@Length(max=200)
	private java.lang.String children;
	
	private Integer isshow;
	//columns END


	public TipBigRegionCn(){
	}



	
	@Id 	@GeneratedValue(generator = "paymentableGenerator")       
	@GenericGenerator(name = "paymentableGenerator", strategy = "native") 
	@Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true, length = 4)
	public Integer getId() {
		return this.id;
	}
	
	
	@Column(name = "name", unique = false, nullable = true, insertable = true, updatable = true, length = 20)
	public java.lang.String getName() {
		return this.name;
	}
	
	@Column(name = "children", unique = false, nullable = true, insertable = true, updatable = true, length = 200)
	public java.lang.String getChildren() {
		return this.children;
	}

	@Column(name = "ISSHOW")
	public Integer getIsshow() {
		return isshow;
	}

	public void setIsshow(Integer isshow) {
		this.isshow = isshow;
	}




	public void setId(Integer id) {
		this.id = id;
	}




	public void setName(java.lang.String name) {
		this.name = name;
	}




	public void setChildren(java.lang.String children) {
		this.children = children;
	}
	@Transient
	@Override
	public String getTarget() {
		// TODO Auto-generated method stub
		return null;
	}
	@Transient
	@Override
	public Long getTargetId() {
		// TODO Auto-generated method stub
		return null;
	}
	@Transient
	@Override
	public String getTargetName() {
		// TODO Auto-generated method stub
		return null;
	}
}

